package com.md.lesson1;

import java.util.Scanner;

public class Four {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		System.out.println("请输入一个四位数；");

		int f = scan.nextInt();
		
		System.out.println("您输入的四位数是" + f);
		System.out.println("您输入的四位数千位是" + (f/1000));
		System.out.println("您输入的四位数百位是" + ((f%1000)/100));
		System.out.println("您输入的四位数十位是" + (f%100)/10);
		System.out.println("您输入的四位数个位是" + (f%10));
	}

}
